package HomeWork;

import java.util.Arrays;

public class Test_3 {
    public static void main(String[] args) {
        String s = "Hello";
        char[] ch = s.toCharArray();
        for (int i = 0; i < ch.length; i++) {
            if(ch[i]>='A'&&ch[i]<='Z') {
                ch[i] += 32;
            }
        }
        String str = new String(ch);
        System.out.println(str.toString());
    }
    public static void main1(String[] args) {
        String s = "Hello, my name        is John";
        String[] str = s.split(" ");
        int sum = 0;
        for(String x : str) {
            if(!x.equals(""))
                sum++;
        }
        System.out.println(str.length);
        System.out.println(sum);
    }
}
